﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.Common.DB
{
    /// <summary>
    /// redis配置信息
    /// </summary>
    public class RedisConfig
    {
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string Connection { get; set; } = "localhost:6379";
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;
        /// <summary>
        /// 默认数据库
        /// </summary>
        public int DefaultDatabase { get; set; } = 0;
        /// <summary>
        /// 连接超时时长
        /// </summary>
        public int ConnectTimeout { get; set; } = 5000;
        /// <summary>
        /// 操作超时时长
        /// </summary>
        public int SyncTimeout { get; set; } = 5000;
        

    }
}
